/**
 * Copyright 2014-2016 Smart Society Services B.V.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 */
package com.alliander.osgp.domain.microgrids.valueobjects;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class Profile implements Serializable {

    private static final long serialVersionUID = 7317782056712941895L;

    private Integer id;
    private String node;
    private List<ProfileEntry> profileEntries;

    public Profile(final Integer id, final String node, final List<ProfileEntry> profileEntries) {
        this.id = id;
        this.node = node;
        this.profileEntries = new ArrayList<>(profileEntries);
    }

    public Integer getId() {
        return this.id;
    }

    public String getNode() {
        return this.node;
    }

    public List<ProfileEntry> getProfileEntries() {
        return new ArrayList<>(this.profileEntries);
    }
}
